#ifndef __TEST_MOUSE_JOINT_H__
#define __TEST_MOUSE_JOINT_H__

#include "BaseLayer.h"

class TestMouseJoint : public BaseLayer {
public:
	TestMouseJoint() : m_mouseJoint(0) {}
	~TestMouseJoint() {}
	static CCScene* scene();
	virtual bool init();
	CREATE_FUNC(TestMouseJoint);

public:
	void initBody();

public:
	virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
	virtual void ccTouchMoved(CCTouch *pTouch, CCEvent *pEvent);
	virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);

public:
	virtual void update(float dt);

private:
	b2MouseJoint* m_mouseJoint;
};

#endif // __TEST_MOUSE_JOINT_H__